home *** CD-ROM | disk | FTP | other *** search
/ Informática Multimedia 1995 April / Informatica Multimedia CD - Epimundo.iso / DOS / CAT_DISK / VLITE.ZIP / VMANUAL.DOC < prev   
Encoding:
Text File  |  1992-04-08  |  58.8 KB  |  1,895 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                ╔═══════════════════════════════════════╗
  7.                ║             Visage LITE               ║
  8.                ║                                       ║
  9.                ║       DOCUMENT IMAGE MANAGEMENT       ║
  10.                ║             User's Guide              ║
  11.                ║                                       ║
  12.                ║           SHAREWARE VERSION           ║
  13.                ║                                       ║
  14.                ╚═══════════════════════════════════════╝
  15.  
  16.                   ┌─────┌──────┐┌──────┐┌──────┐─┐
  17.                   │     │ ┌──────┐     ││ ┌──────┐
  18.                   │     │ │      │     ││ │      │
  19.                   │     │ │      │     ││ │      │
  20.                   └─────└─│      │─────┘└─│      │
  21.                           └──────┘        └──────┘
  22.  
  23.  
  24.  
  25.                        (c)  Copyright 1991, 1992
  26.                     Document Image Development Corp.
  27.                     270 Lafayette Street, Suite 1008
  28.                         New York, New York 10012
  29.                              (212) 431-4084
  30.  
  31.  
  32.  
  33.  
  34.                      IMPORTANT LICENSE INFORMATION
  35.  
  36.      Visage LITE is provided at no charge for evaluation purposes only.
  37. This shareware version of Visage LITE is the complete working version of
  38. the program, not a crippled or demo copy.
  39.  
  40.      The Document Image Development Corp. (DIDC) hereby grants you a
  41. limited license to use this software for evaluation purposes only for a
  42. period not to exceed thirty (30) days.  If you intend to continue
  43. using this software (and/or its documentation) after the thirty
  44. (30) day evaluation period, you MUST make a registration payment to
  45. DIDC. Using this software after the evaluation period has ended
  46. without registering is a violation of the terms of this limited
  47. license.
  48.  
  49.      Licensee shall not use, copy, rent, lease, sell, modify, decompile,
  50. disassemble, otherwise reverse engineer, or transfer the licensed
  51. program except as provided in this agreement.  Any such unauthorized
  52. use shall result in immediate and automatic termination of this
  53. license.
  54.  
  55.      All rights not expressly granted here are reserved to DIDC.
  56.  
  57.  
  58.                                 PAGE  1
  59.  
  60. Overview
  61. ========
  62.  
  63.         Visage is a complete document storage and retrieval subsystem
  64. that handles the scanning, storing, display, and printing of all
  65. document images.  Scanned documents are stored in disk files which can
  66. be on standard PC hard drives or removable optical cartridges. Because
  67. Visage maintains its own database that keeps track of where images are
  68. stored, you are relieved of this tedious chore.
  69.  
  70.         Visage provides the application programmer with a wide variety
  71. of functions that control the scanning, storing, display, and printing
  72. of document images. Linkable interface modules are currently available
  73. for Microsoft C, Turbo C, most other C compilers, Turbo Pascal, and
  74. Clipper. In addition, Visage may be accessed by your application without
  75. using any programming interface.
  76.  
  77.         A major advantage of Visage lies in its ability to load as a
  78. "swappable" TSR requiring less than 9K of conventional memory.  When
  79. loaded, the TSR swaps itself to expanded memory or, if no expanded
  80. memory is available, to disk. It then waits to be activated at which
  81. time it swaps out the active program and swaps itself back in. This
  82. process is completely invisible to the user.
  83.  
  84.     The following are the key functions Visage provides:
  85.  
  86.         Scanning:       entire document, single pages, insert, delete
  87.                         and replace
  88.  
  89.         Viewing :       next page, previous page, go to specific page
  90.  
  91.         Printing:       single page, range of pages or entire document
  92.  
  93.         Storage :       indexing and optical disk management
  94.  
  95. Perhaps the most important feature of Visage is that it operates under
  96. MS-DOS. No other special software is required.
  97.  
  98. Advanced Visage Features
  99.  
  100.         The Visage system incorporates many advanced features to
  101. maximize the speed and efficiency of document processing. These include:
  102.  
  103.         Image Staging: Scanned images are initially written to
  104. magnetic media and are later move to optical media via a batch update
  105. mode.  This speeds up the scanning process and also allows the user to
  106. delete unwanted images before they are committed to optical medial.  The
  107. batch update can be performed overnight, providing a minimum of system
  108. downtime.
  109.  
  110.           Volume Management:  Visage keeps track of the location of
  111. stored images across many volumes. This is absolutely essential in
  112.  
  113.  
  114.                                 PAGE  2
  115.  
  116.  
  117.  
  118.  
  119. applications that maintain a large number of document images.
  120.  
  121.           Image Caching: Retrieved images are cached to the PC's hard
  122. drive. Optical disks are considerably slower than magnetic drives. By
  123. caching images to the PC's hard drive, subsequent access to images
  124. already retrieved is made much faster.
  125.  
  126.           Software Decompression: Images are stored in compressed format
  127. to maximize disk space. Our DIDC2.EXE TSR supports software
  128. decompression so you don't need special hardware to view images.
  129.  
  130.           Image Manipulation: Viewed images can be zoomed, panned,
  131. scrolled, and rotated.
  132.  
  133.           Network Support:  DIDC's WormServer software provides
  134. network-wide multiple simultaneous access to images on Novell networks.
  135. Advanced Database Design:  The image databases maintained by Visage use
  136. variable length records with key compression to minimize the amount of
  137. disk space required.
  138.  
  139.           Safety and Reliability:  Visage protects against data loss
  140. from power outages or computer failure.  Image storage and database
  141. updates use advanced write-through techniques to ensure data and image
  142. integrity.
  143.  
  144.           Standardization:  Visage uses industry standard CCITT group 4
  145. compression (the most effective image compression available) and all
  146. images are stored in industry standard TIFF format.  Visage also uses
  147. standard DOS file formats making it easy to back-up image files to tape
  148. or make copies of image volumes using the COPY command.
  149.  
  150.           Sub-document Handling:  Visage allows you to define
  151. subdocuments within a document allowing for more efficient document
  152. management.
  153.  
  154.           Insertion, replace and Deletion:  New pages can be inserted at
  155. any point in a document. Selected document pages can also be deleted.
  156.  
  157.           Hardware Support:  Visage supports a wide range of printers,
  158. scanners, optical drives and display systems from manufacturers such as
  159. Hewlett Packard, Panasonic, Ricoh, Fujitsu, Canon, TDC and Bell &
  160. Howell.
  161.  
  162.  
  163. Hardware and Software Requirements
  164.  
  165.         The Visage system comprises three different TSRs -- one that
  166. provides full functionality (but requires special hardware), one that
  167. provides low speed page scanner compatability (but requires no special
  168. hardware), and one that provides display only capability. DIDC1.EXE is
  169. the full-function TSR used in conjunction with the Kofax Document
  170. Processor. It provides access to all Kofax supported peripherals.
  171.  
  172.         DIDC2.EXE is a view only version for network workstations.
  173.  
  174.         DIDC3.EXE (distributed as Visage LITE) is the version addressed
  175. by this manual.  DIDC3 requires no special add-in board. It provides
  176. scanning facilities through the Hewlett Packard ScanJet and ScanJet Plus
  177. scanners. Typically, DIDC3 will be used in environments with low volume
  178. document image management requirements and for application prototyping.
  179. Data and images produced by DIDC3.EXE are 100% compatible with our high
  180. volume image management platforms!
  181.  
  182.  
  183.  
  184.                                 PAGE  3
  185.  
  186.  
  187.  
  188.  
  189.         Visage is compatible with all EGA and VGA display systems.
  190. Visage will operate on any computer with an 80286, 80386 or 80486
  191. processor running under MS- DOS or PC-DOS 3.0 or higher. A minimum of
  192. 555K free conventional memory is required. For optimal performance, at
  193. least an 80386 based computer, math co-processor, disk cache and one
  194. megabtye of expanded memory is recommended.
  195.  
  196. Setting up to Use Visage
  197.  
  198.         Before you run Visage LITE for the first time, you must install
  199. your scanner driver. Make sure all the scanner drivers are in your
  200. current directory.  Execute the INSTALL3.EXE file and choose your
  201. scanner from the displayed list. That's all there is to it. You do not
  202. need to do this again unless you change to a different scanner.
  203.  
  204.         Prior to loading the VISAGE TSR itself, you must set certain
  205. environment variables.  These are required so that VISAGE knows the
  206. location of its image data and index files; .DOC and .DCX respectively.
  207. You may set the environment variables in your AUTOEXEC.BAT file, from
  208. another batch file or at the DOS command line. The syntax is as follows:
  209.  
  210.         SET DIDC=C:\VISAGE (where C:\VISAGE is your working directory
  211.                             This can be any directory and will contain
  212.                             the VISAGE data and index files)
  213.  
  214.         SET DIDCTMP=C:\    (where C:\ is a directory to be used for
  215.                             temporary images storage. Note: if you do
  216.                             not specify a DIDCTMP variable, VISAGE will
  217.                             default to using C:\)
  218.  
  219. Using Visage Without EMS
  220.  
  221.         If your computer does not have EMS, Visage will swap to disk in
  222. the directory in which the TSR was loaded.  When activated by a Visage
  223. function call, the TSR will swap back from disk and perform the task.
  224. This process takes a few seconds -- the actual time will depend on how
  225. fast your hard disk is.  Using disk caching software will improve
  226. performance.
  227.  
  228.         You can control where the TSR swaps by using the SAVEPATH
  229. environment variable to control how the Visage TSRs swap.  You can set
  230. the SAVEPATH variable from the DOS prompt as shown here:
  231.  
  232.         set savepath=C:\
  233.  
  234.         This tells Visage to swap to the root directory of drive C:.
  235. Important: If you set the SAVEPATH variable, Visage will always swap to
  236. disk even if sufficient EMS is available. The SAVEPATH variable is
  237. useful if you have a RAM disk installed. If, for example, you have a RAM
  238. disk installed as drive D:, you can tell Visage to swap to that drive.
  239. Swapping to RAM disk is considerably faster than swapping to a hard
  240. drive. Removing Visage From Memory
  241.  
  242.         To remove the Visage TSR from memory, hold down the CTRL and ALT
  243. keys at the same time and press Q.  The TSR will not unload if other
  244. memory resident programs were loaded after it. Some memory resident
  245. programs and device drivers such as network drivers must be loaded
  246. before Visage. If you encounter problems after loading Visage, make sure
  247. that no other resident programs were loaded after Visage.
  248.  
  249.  
  250.                                 PAGE  4
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257. Using Visage With Existing Applications
  258.  
  259.         Visage is designed so that it can be used even with programs
  260. that do not have Visage function calls.  This means you can use Visage
  261. with just about any program.  When used with existing programs, you must
  262. define a Visage Key -- a string of characters that Visage can find on
  263. the computer screen.  Let's say you are using a database application
  264. with the following fields displayed on the screen:
  265.  
  266.  
  267.             Name:        Jones
  268.             ID:        903214
  269.             Address:    301 Main Street
  270.             City:        Hohokus
  271.             State:        NJ
  272.  
  273.         Suppose you want to store a document for this individual and use
  274. the contents of the ID field as the key into the image database.  You
  275. simply tell Visage that the key field is ID: and Visage will search the
  276. display for those characters (make sure you include the colon), skip
  277. past any blanks, and pick up the value 903214.  The only restriction is
  278. that the key field must be on the screen so that Visage can find it.
  279.  
  280.  
  281. Defining a Key Field
  282.  
  283.         To define a key field, you must create a file named VISAGE.KEY
  284. and in that file store the name of the field Visage should look for. In
  285. the example just given, VISAGE.KEY would contain "ID:". The key field is
  286. case sensitive, so make sure you type in the field exactly as it appears
  287. on the screen.
  288.  
  289. Using Visage in Popup Mode
  290.  
  291.         To use Visage with existing applications, you must load the TSR
  292. in popup mode. To do this, simply add the command line parameter P
  293. (e.g., DIDC1 -P).  In popup mode, Visage allows you to use the following
  294. hot keys:
  295.  
  296. CTL+F1:  Visage Menu.  Activates the Visage menu system.  When you press
  297. this key combination, Visage searches the screen to find the key field.
  298. If it finds the field, it picks up the contents of the field, opens the
  299. VISAGE image database, and activates the menu system.  If VISAGE does
  300. not find the key field, it will use the last key value it found.  If
  301. there is no previous key value to use, VISAGE will beep and return to
  302. the application.
  303.  
  304. CTL+F2:  Batch Update.  Initiates a batch update, which copies images
  305. from the default volume to the destination volume.
  306.  
  307. CTL+F3:  Batch Print.  This function lets you print a batch of documents
  308. at one time. Prior to calling this function, you must create a text file
  309. name PRT.LST, which will contain a list of document keys, one per line.
  310. Visage will read the keys from this file and print their associated
  311. documents.
  312.  
  313. Figure 1: Using Visage to link images to a database record
  314.  
  315.  
  316.                                 PAGE  5
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.                         ╔══════════════════════════════╗
  324.                         ║                              ║
  325.                         ║                              ║
  326.                         ║     (Figure not shown)       ║
  327.                         ║                              ║
  328.                         ║                              ║
  329.                         ║                              ║
  330.                         ╚══════════════════════════════╝
  331.  
  332.  
  333.  
  334. Operating Visage
  335.  
  336.         Visage will typically be used in conjunction with a database
  337. application which has been compiled with the Visage function calls.  The
  338. function calls activate various image processing functions.  To use
  339. these functions effectively, it is necessary to understand how Visage
  340. stores images
  341.  
  342. The Visage Document and Volume Storage System
  343.  
  344.         Visage manages documents up to 500 pages in length. The Visage
  345. database uses compressed variable length data records that require
  346. minimal disk storage. Key values used to access images can be up to 30
  347. characters long. The database resides on a magnetic hard drive, but
  348. images can be stored on magnetic or optical media.
  349.  
  350.         Visage stores images on volumes. A volume is simply a hard drive
  351. or optical disk that has a volume id contained in a VOL.ID file in its
  352. root directory. For example, if your computer has a D: hard drive, and
  353. you want to make the D: drive volume 3, you would simply create a file
  354. D:\VOL.ID that contains the ASCII text number "3". Visage supports
  355. volumes from 1 to 65535. NOTE: Zero is not a valid visage volume number.
  356. Visage will store images only to drives or optical disks that have a
  357. valid VOL.ID file in the root directory.
  358.  
  359.         When Visage starts up, it locates all drives that have VOL.ID
  360. files in the root directory. It will also look on those drives to see if
  361. an image file exists. On any one volume, all images are stored in a file
  362. named IMAGES.FIL. If this file does not exist, Visage will create it.
  363. When images are scanned Visage will ask which volume should be used to
  364. store the images.
  365.  
  366.  
  367. The Default Volume
  368.  
  369.         Visage is designed to be used with WORM (Write Once-Read Many)
  370. optical media. WORM media can store huge amounts of data, but anything
  371. written to a WORM cartridge cannot be erased. To minimize wastage of
  372. optical media, Visage utilizes a default volume for temporary storage of
  373. images before committing them to optical media. In fact, Visage will not
  374. allow images to be scanned unless a default volume is identified.
  375.  
  376.         One of the PC's hard drives must be setup as a default volume.
  377. To do this, in the root directory of the drive, create a VOL.ID file
  378. containing the volume id 65535. Visage reserves this volume id for use
  379. as a default volume number. When images are scanned, Visage stores them
  380.  
  381.  
  382.                                 PAGE  6
  383.  
  384.  
  385.  
  386.  
  387. on the default drive, regardless of the volume to which they have been
  388. assigned. Later, the batch update procedure transfers the images from
  389. the default drive to the designated optical volume.
  390.  
  391.         Using a magnetic drive as a default volume has several
  392. advantages. First, it speeds up scanning because writing to magnetic
  393. media is much faster than writing to optical media. Second, it allows
  394. the user to delete pages prior to batch updating without wasting optical
  395. disk space. Third, it is more convenient because the destination volume
  396. does not have to be mounted while scanning takes place. Visage Network
  397. Support
  398.  
  399.         The Visage document image processing system comes in two
  400. versions -- standalone and network server. The standalone system
  401. requires that all image volumes (hard drives and optical media) be
  402. attached to the image workstation PC. The network system utilizes a PC
  403. running the WormServer software.  This PC has optical drives attached
  404. and is dedicated to storing and retrieving images. Visage currently
  405. supports Novell networks (SPX/IPX) and soon will provide support for
  406. NetBios, and TCP/IP networks, which means just about any network you'll
  407. find.
  408.  
  409.         In a typical network implementation, the image server (running
  410. the WormServer software) would have one large magnetic drive assigned as
  411. the default volume, and one or more optical drives. To the user, the
  412. standalone and network versions of Visage look identical. The only
  413. difference is that images are stored on the network image server rather
  414. than a local drive. Just as important, the network and standalone
  415. versions of Visage have exactly the same programmer's interface. That
  416. means that the same version of your application can support either
  417. environment.
  418.  
  419. Preparing your Application
  420.  
  421. Visage maintains database files that record the location of stored
  422. pages. Each document within a database is uniquely identified by a key
  423. -- a character string of up to 30 characters. To access documents in
  424. application programs, you must tell Visage which database to use and
  425. provide the key to locate the image information. For example, the
  426. function call
  427.  
  428.     DIDC_call_menu("RECORDS","100233",0);
  429.  
  430. activates the Visage menu system using the RECORDS image database. This
  431. database consists of two files: RECORDS.DOC and RECORDS.DCX.  In the
  432. RECORDS database, Visage will locate the record with a key equal to
  433. "100233".  (The use of the third parameter is described in the
  434. Programmer's Interface section.) Your application is responsible for
  435. keeping track of key values. Typically, the key will be stored in a
  436. field of your database record. Each record will have a key that links it
  437. to the Visage database.  One word of caution -- once images are stored,
  438. it is imperative that the key in your database not be changed or you
  439. will lose your link to the image database. The DIDC Menu
  440.  
  441.         The DIDC Menu system is activated by a call to DIDC_call_menu.
  442. When first activated, the menu system displays menu options across the
  443. top line of the screen and status information at the bottom of the
  444. screen. The main menu choices are View, Scan, Print, and Misc.  At the
  445. bottom of the screen, the status line tells which page is selected, the
  446.  
  447.  
  448.                                 PAGE  7
  449.  
  450.  
  451.  
  452.  
  453. number of pages in the document, the volume selected for storing images,
  454. the name of the image database, and the key associated with the current
  455. document.
  456.  
  457.  
  458.  
  459.  
  460.  
  461. The Main Menu
  462.  
  463.  
  464.         To select the menu option you want, use the left and right arrow
  465. keys to highlight your selection, then press the down arrow key to
  466. activate the pull-down menu. To return to the Main Menu from a pull-down
  467. menu, press ESC.
  468.  
  469. The View Menu
  470.  
  471. The View Menu offers
  472. the following options:
  473.  
  474.  
  475. Next Page               ╔══════════════════════════════╗
  476. Prev page               ║                              ║
  477. Same page               ║                              ║
  478. Go to page              ║     (Figure not shown)       ║
  479. Clear screen            ║                              ║
  480.                         ║                              ║
  481.                         ║                              ║
  482.                         ╚══════════════════════════════╝
  483.  
  484.  
  485.  
  486.         When the menu system is first activated, no page is selected.
  487. Selecting Next Page will retrieve the first page of the document and
  488. make it the selected page. Subsequent use of Next Page will retrieve
  489. next pages in the document in sequential order.  Selecting Prev Page
  490. will retrieve the page previous to the currently selected page. If the
  491. currently selected page is 0 or 1, Prev Page does nothing.
  492.  
  493.         On systems equipped with VGA or EGA monitors, the page displayed
  494. will take up the entire screen, so you will not be able to view the
  495. application and the image at the same time. If you want to review the
  496. selected page, use Same Page.
  497.  
  498. Go to Page
  499.  
  500. The Go to Page option
  501. allows you to view a          ╔══════════════════════════════╗
  502. specific page by page         ║                              ║
  503. number. When you              ║                              ║
  504. select this option, you       ║     (Figure not shown)       ║
  505. will be asked to enter        ║                              ║
  506. the page number to            ║                              ║
  507. view. Type in the page        ║                              ║
  508. number and press              ╚══════════════════════════════╝
  509. ENTER or press ESC
  510. to return to the menu.
  511.  
  512.  
  513.  
  514.                                 PAGE  8
  515.  
  516.  
  517.  
  518.  
  519.  
  520. Clear Screen
  521.  
  522. The Clear Screen option
  523. removes the images from
  524. the image window on dual
  525. page display systems.
  526.  
  527. Viewing Options
  528.  
  529. Visage provides the following image manipilation functions:
  530.  
  531.     ALT+Z:    Enlarge the image
  532.     CTL+Z:    Reduce the image
  533.     ALT+R:    Rotate the image clockwise
  534.     CTL+R:    Rotate the image counterclockwise
  535.     Arrows:     Move the image
  536.     Home:    Position image at upper left
  537.         H:      Hide data window (on dual page displays)
  538.         PgDn    Retrieve next page
  539.     PgUp    Retrieve previous page
  540.         ENTER   Return to menu system
  541.  
  542.  
  543. The Scan Menu
  544.  
  545. The Scan Menu offers
  546. the following options:
  547.  
  548.           Scan pages              ╔══════════════════════════════╗
  549.           Insert pages            ║                              ║
  550.           Replace page            ║                              ║
  551.           Replace specific page   ║     (Figure not shown)       ║
  552.           Delete current page     ║                              ║
  553.           Delete specific page    ║                              ║
  554.           Delete page range       ║                              ║
  555.           Delete document         ╚══════════════════════════════╝
  556.           
  557.  
  558. Scan pages
  559.  
  560.         When this option is selected, Visage activates the scanner,
  561. scans in as many pages as are in the hopper (or just one page in Flat
  562. Bed mode) and appends the pages to the current document.
  563.  
  564.  
  565. Insert pages
  566.  
  567.         This option operates like Scan Pages except that the scanned
  568. pages are inserted into the document in front of the currently selected
  569. page.
  570.  
  571.  
  572. Replace page
  573.  
  574.         This option will replace the currently selected page with a
  575. newly scanned image
  576.  
  577.  
  578.  
  579.                                 PAGE  9
  580.  
  581.  
  582.  
  583.  
  584.  
  585. Replace specific page
  586.  
  587.         Use this option to identify a specific page you want to replace
  588. with a new image Delete current page
  589.  
  590. Delete current page
  591.  
  592.         This option deletes the currently selected page from the
  593. document. Before the deletion is made, Visage will ask you to confirm
  594. that this is what you want to do
  595.  
  596. Delete specific page
  597.  
  598.         Deletes an image you specify by page number
  599.  
  600. Delete page range
  601.  
  602.         Deletes a specified range of pages. You will be prompted to
  603. enter the starting and ending page numbers
  604.  
  605. Delete document
  606.  
  607.         This option deletes all pages from the currently selected
  608. document. As with all delete functions, the user must confirm the action
  609. before the deletion is made.
  610.  
  611.  
  612.  
  613. The Print Menu
  614.  
  615. The Print Menu offers               ╔══════════════════════════════╗
  616. the following options:              ║                              ║
  617.                                     ║                              ║
  618.           Print document            ║     (Figure not shown)       ║
  619.           Print current page        ║                              ║
  620.           Print page range          ║                              ║
  621.           Print specific page       ║                              ║
  622.                                     ║                              ║
  623.                                     ╚══════════════════════════════╝
  624. Print document
  625.  
  626.  
  627.         This option prints all pages of the current document.
  628.  
  629. Print current page
  630.  
  631.     This option prints the currently selected page.
  632.  
  633. Print page range
  634.  
  635.         This option permits printing part of a document. You will be
  636. prompted for the starting and ending page.
  637.  
  638.  
  639. Print specific page
  640.  
  641.         You will be prompted for the number of the single page you wish
  642. to print.
  643.  
  644.  
  645. NOTE: For all print options, you will be prompted for the number of copies.
  646.  
  647.  
  648.                                 PAGE  10
  649.  
  650.  
  651. The Misc Menu
  652.  
  653. The Misc Menu offers                 ╔══════════════════════════════╗
  654. the following options:               ║                              ║
  655.                                      ║                              ║
  656.           Drive status               ║     (Figure not shown)       ║
  657.           Select write volume        ║                              ║
  658.           Mount volume               ║                              ║
  659.           Batch update               ║                              ║
  660.           Extract pages to TIF       ╚══════════════════════════════╝
  661.  
  662.  
  663. Drive status
  664.  
  665. This option displays the
  666. currently logged image
  667. volumes and the percent
  668. of disk space used on
  669. each volume.
  670.  
  671. Select write volume
  672.  
  673.         This option lets you change the volume to which subsequently
  674. scanned images will be stored.
  675.  
  676. Mount volume
  677.  
  678.         If you need to view images that are on a volume that is not
  679. currently mounted, select this option, mount the desired volume, and
  680. then press ENTER. This function applies only to images stored on
  681. removable media such as optical disk cartridges.
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.                                 PAGE  11
  689.  
  690. Batch update
  691.  
  692.  
  693.         When images are scanned, they are initially stored on the
  694. default volume (identified by volume id 65535). The batch update process
  695. moves images from the default volume to the volume selected as the write
  696. volume when the images were scanned in. The default volume must be a
  697. magnetic hard drive and when the batch update is completed, the images
  698. on the default drive are erased.
  699.  
  700.         When you are ready for a batch update, call the Visage Menu and
  701. select BatchUpdate. You will see a series of questions at the top of
  702. your screen. Answer each question as indicated. The main item the Visage
  703. needs to know is the volume number of the storage destination. The is
  704. the VOL.ID entered when a new document was scanned. After you supply the
  705. volume number, you will be asked to confirm your decision. If you answer
  706. no, you will be returned to the Menu. If you answer yes, make sure you
  707. have the correct disk in the optical drive and Visage will begin moving
  708. your documents to the optical disk or designated hard disk
  709. sub-directory. Depending on how much scanning you've done, this process
  710. may take some time. In most cases, you will probably want to do this at
  711. the end of the day.
  712.  
  713. Extract pages to TIF
  714.  
  715.         All images scanned through VISAGE are stored in a single file.
  716. This technique improves the performance and efficiency of the system.
  717. Since VISAGE stores files in a graphics format (TIFF) supported by many
  718. OCR software packages, you may want to convert specific pages of a
  719. document (or an entire document) to ASCII or a word processing format.
  720. The EXTRACT option permits you to specify pages from a document and
  721. creates a single TIFF file for each page.  You will first be prompted
  722. for a directory for the extracted pages and then the range of pages you
  723. wish to convert.  Finally, you will be asked for a three (3) letter
  724. filename prefix.  VISAGE will increment this prefix with the number of
  725. each page you extract. For example; ABC00001.TIF, ABC00002.TIF, etc.
  726.  
  727.  
  728. Working with Sub Documents
  729.  
  730.         When your application provides Visage with a new key, a document
  731.  is created for images associated with the database record holding that
  732.  key.  Thus, there is a specific and unique image set, or document per
  733.  database key.  However, there may be applications which require a more
  734.  comprehensive document definition.  When this is the case, Visage
  735.  provides a facility for creating Document Types.  For example, suppose
  736.  your were designing a document image processing system for a doctor's
  737.  office.  The doctor interested in medical information about a patient
  738.  and doesn't want to browse through boring financial and insurance
  739.  information (as long as the bills are paid).  However, the office staff
  740.  are mainly concerned with looking at the financial and insurance
  741.  information (to make sure the bills are paid).  By using the Visage Sub
  742.  Document Type facility you can create two or more sections within each
  743.  document.  These are referred to as document types.
  744.  
  745.         Defining document types and adding them too your application is
  746. very easy.  Simply create an ASCII file with the name of a single
  747. document type on each line and give the file any name you want.
  748. For example, in the doctor's office situation you might create a
  749. file called PTCHART.LST with the following document types:
  750.  
  751.  
  752.  
  753.  
  754.                                 PAGE  12
  755.  
  756.  
  757.  
  758.                 Financial
  759.                 Med History
  760.         Exams
  761.         Lab Work
  762.         Consults
  763.         Inpatient
  764.         General
  765.  
  766.         To get your application to use these document types, you would
  767. place the above file name at the end of your call to the Visage Menu:
  768.  
  769.     DIDC_call_menu(DB,KEY,0,"PTCHART.LST");
  770.  
  771.         If no file name is provided, Visage will always look for a
  772. default file named DOCTYPES.LST and use this for its sub document type
  773. definitions. If this file is not found and you do not explicitly call a
  774. document type file, this option will be ignored in your application
  775. (i.e., you won't be able to specify document types).
  776.  
  777.         Scanning and retrieving in applications which use document types
  778. require that the user select a specific type prior to scanning or
  779. retrieving an image.
  780.  
  781. The Visage Programmer's Interface
  782.  
  783.  
  784.         The Visage Programmer's Interface allows your application
  785. program to communicate with the Visage TSR.  The function calls give you
  786. complete control over the document image processing capabilities of
  787. Visage. You can use as many or as few of the functions as you desire.
  788. Currently, interfaces modules are available for Turbo C, Microsoft C,
  789. Clipper, and Turbo Pascal.
  790.  
  791.         Visage maintains its own database that keeps track of where
  792. images are stored. Each document can be up to 500 pages long.  Documents
  793. can also be subdivided into sub-documents.  For example, in a personnel
  794. records management system, a document might consist of three types of
  795. sub-documents: a resume, correspondence with the applicant, and
  796. correspondence with prospective employers. All three types of
  797. sub-documents are stored in the same document record, but are
  798. distinguished by the document type -- a name you assign when the
  799. sub-documents are scanned.  The C language function call below scans
  800. pages into the IMGDB database with a key of DOC1. The pages are assigned
  801. to document type 1, as indicated by the third parameter.
  802.  
  803.                  res = DIDC_auto_scan ("IMGDB","DOC1",1);
  804.  
  805.         Note that if the IMGDB database does not exist, it will be
  806.         created. If the record with a key value "DOC1" is not found in
  807.         the database, a new record will be added.
  808.  
  809.  
  810.         Documents are uniquely identified by a database name and a key,
  811. both of which are character strings.  The database keeps track of:
  812.  
  813.                 - Which pages belong to a document
  814.                 - Where the pages are stored
  815.                 - The sub-document type of each page
  816.  
  817.  
  818.                                 PAGE  13
  819.  
  820.  
  821.  
  822.  
  823.                 - The order of the pages within a document
  824.                   and sub-document
  825.  
  826.  
  827.         For example, IMGDB is a document database containing two
  828.         document records. The records contain the following information:
  829.  
  830.     Record 1:    Key = "DOC1"
  831.  
  832.     Page    Type        Location
  833.        1           1        Volume 1
  834.        2           1        Volume 1
  835.        3           2        Volume 3
  836.  
  837.     Record 2:    Key = "DOC2"
  838.  
  839.     Page    Type        Location
  840.        1           1        Volume 1
  841.        2           2        Volume 4
  842.        3           2        Volume 3
  843.        4           2        Volume 4
  844.        5           3        Volume 6
  845.  
  846.  
  847.         Notice that pages are ordered by document type -- pages of type
  848.         1 come before pages of type 2, etc.  Note also that pages need
  849.         not necessarily reside on the same volume. If pages are scanned
  850.         at different times, it is likely that they will be stored on
  851.         different volumes because the earlier volumes were filled.
  852.         Visage keeps track of where pages are stored so you can make
  853.         sure the correct volumes are mounted.
  854.  
  855.         One of the most useful functions Visage provides is the menu
  856.         system.  For example, the Visage C function:
  857.  
  858.     DIDC_call_menu("RECORDS","100233",0);
  859.  
  860.         calls the Visage popup menu system for database "RECORDS" using
  861.         the key "100233". Visage will automatically create a database
  862.         RECORDS.DOC and an index RECORDS.DCX, which it will use to keep
  863.         track of where images are stored. It is vital that database and
  864.         index files are not deleted or damaged since they are difficult
  865.         to rebuild. We recommend frequent backups of these files to
  866.         insure access to images.
  867.  
  868.         The DIDC_call_menu() function is just one of many function calls
  869.         Visage provides the application programmer. Other function calls
  870.         provide direct (that is, invisible to the user) access to
  871.         scanning, storage, display, and printing capabilities. Interface
  872.         modules are currently available for MicroSoft C, Turbo C, most
  873.         other C compilers, Turbo Pascal, and Clipper. A major advantage
  874.         of Visage lies in its ability to load as a "swappable" TSR
  875.         requiring less than 9K of conventional memory.
  876.  
  877.  
  878.  
  879.  
  880.  
  881.                                 PAGE  14
  882.  
  883. Visage C Function Calls
  884.  
  885.         The following are the Visage function calls for the C language.
  886. The Visage modules are compiled using the large model, so your
  887. application must also use the large model. The files MSCVIS.OBJ (for
  888. Microsoft C) and TCVIS.OBJ (for Borland C) contain the Visage function
  889. calls for C (SOME FUNCTIONS MAY NOT BE AVAILABLE IN VISAGE LITE).
  890.  
  891.  
  892. int DIDC_locate_tsr(void);
  893.  
  894.         Locates the Visage TSR and initializes the shared data area. The
  895.         function returns the following value:
  896.  
  897.         1    The TSR was located.
  898.         0    The TSR was not located.
  899.  
  900.         Important: This function must be called before any other Visage
  901.         function calls.
  902.  
  903.  
  904. int DIDC_tsr_type(void);
  905.  
  906.         DIDC provides two types of TSR programs. One supports display,
  907.         scan, and print -- the other supports display only. This
  908.         function indicates which type of TSR is currently loaded. The
  909.         return values are:
  910.  
  911.         1    Supports scan, print, display
  912.         2    Supports display only
  913.  
  914.  
  915.  
  916.  
  917.  
  918. int DIDC_total_pages(char db[], char key[]);
  919.  
  920.     Parameters:    
  921.  
  922.         db: name of the image database
  923.  
  924.         key: unique identifier used to locate document in image database
  925.  
  926.         Returns the total number of pages, of all types, associated with
  927.         key.
  928.  
  929.  
  930. int DIDC_total_pages_type(char db[], char key[], int page_type);
  931.  
  932.     Parameters:    
  933.  
  934.         db: name of the image database
  935.  
  936.                 key: unique identifier used to locate document in image
  937.                 database
  938.  
  939.                 page_type: Identifies subdocument type to count. Must be
  940.                 greater than zero.
  941.  
  942.         Returns the total number of pages of type page_type associated
  943.         with key.
  944.  
  945.  
  946.  
  947.                                 PAGE  15
  948.  
  949.  
  950.  
  951.  
  952.  
  953. int DIDC_show_luns(void);
  954.  
  955.     Displays the status of all volumes currently mounted.
  956.  
  957.  
  958.  
  959. int DIDC_scan_page(char db[], char key[], int page_type);
  960.  
  961.     Parameters:    
  962.  
  963.         db: name of the image database
  964.  
  965.                 key: unique identifier used to locate document in image
  966.                 database
  967.  
  968.                 page_type: Identifies subdocument type to scan. Must be
  969.                 greater than zero.
  970.  
  971.  
  972.         Initiates scanning mode for the document defined by db and key.
  973.         Scans one page only.
  974.  
  975.  
  976. int DIDC_auto_scan(char db[], char key[], int doctype);
  977.  
  978.     Parameters:    
  979.  
  980.         db: name of the image database
  981.  
  982.                 key: unique identifier used to locate document in image
  983.                 database
  984.  
  985.                 page_type: Identifies subdocument type to scan. Must be
  986.                 greater than zero.
  987.  
  988.  
  989.         Initiates scanning mode for the document defined by db and key.
  990.         Scanned pages will be appended to the document. The doctype
  991.         parameter assigns a sub-document type to the pages being
  992.         scanned. The Visage system allows documents to be divided into
  993.         sub-documents by document type. You can scan some pages with
  994.         doctype equal to 1 and others pages with other values -- Visage
  995.         keeps track of which pages belong to which document type.
  996.  
  997.  
  998. int DIDC_insert_page(char db[], char key[], int doctype, int page_num);
  999.  
  1000.     Parameters:    
  1001.  
  1002.         db: name of the image database
  1003.  
  1004.                 key: unique identifier used to locate document in image
  1005.                 database
  1006.  
  1007.                 page_type: Identifies subdocument type to scan. Must be
  1008.                 greater than zero.
  1009.  
  1010.         page_num: Page to insert in front of.
  1011.  
  1012.  
  1013.                                 PAGE  16
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.         Initiates scanning mode for the document defined by db and key.
  1021.         Scanned pages will be inserted into the document in front of the
  1022.         page identified by page_num. The doctype parameter assigns a
  1023.         sub-document type to the pages being scanned.
  1024.  
  1025.  
  1026.  
  1027. int DIDC_delete_page(char db[], char key[], int doctype, int page_num);
  1028.  
  1029.     Parameters:    
  1030.  
  1031.         db: name of the image database
  1032.  
  1033.                 key: unique identifier used to locate document in image
  1034.                 database
  1035.  
  1036.                 page_type: Identifies subdocument type to scan. Must be
  1037.                 greater than zero.
  1038.  
  1039.         page_num: Page to delete.
  1040.  
  1041.  
  1042.         Deletes page page_num of type page_type from document key in
  1043.         database db.
  1044.  
  1045.  
  1046. int DIDC_call_menu(char db[], char key[], int flag, tfname[]);
  1047.  
  1048.     Activates the Visage menu system.
  1049.  
  1050.     Parameters:    
  1051.  
  1052.         db: name of the image database
  1053.  
  1054.                 key: unique identifier used to locate document in image
  1055.                 database
  1056.  
  1057.                 flag: when set to 0, menu pops up immediately. when set
  1058.                 to 1, TSR immediately displays image. When user presses
  1059.                 ESC, TSR returns to menu. If document has no pages, menu
  1060.                 will popup immediately.
  1061.  
  1062.                 tfname: name of file containing a list of sub-document
  1063.                 types. You can pass a null string ("") to indicate that
  1064.                 sub-document types are not used.
  1065.  
  1066. int DIDC_set_write_vol(unsigned wv);
  1067.  
  1068.         Sets the write volume to the value of wv. The write volume is a
  1069.         number that specifies on which volume scanned images should be
  1070.         stored. The write volume can also be changed by the user at the
  1071.         Visage menu.
  1072.  
  1073.  
  1074. int DIDC_get_write_vol(void)
  1075.  
  1076.     Returns the number of the current destination volume.
  1077.  
  1078.  
  1079.  
  1080.  
  1081.                                 PAGE  17
  1082.  
  1083.  
  1084.  
  1085. int DIDC_batch_update(void);
  1086.  
  1087.         Initiates a batch update. During batch update, images are
  1088.         transferred from the default volume to their ultimate
  1089.         destination. For example, a page that was scanned to volume 2
  1090.         will first be stored on the default volume. During the batch
  1091.         update process, the image will be moved from the default volume
  1092.         to volume 2.
  1093.  
  1094.  
  1095. int DIDC_set_scanner(int page_len, int source, int                     intensity);
  1096.  
  1097.         Controls scanner settings for the length of the pages to be
  1098.         scanned (letter or legal), the paper source (hopper or flat
  1099.         bed), and the intensity of the scan from lightest (0) to darkest
  1100.         (6).
  1101.  
  1102.     Parameters:     
  1103.  
  1104.         page_len:     0 = Legal size
  1105.                 1 = Letter size
  1106.         source:        0 = Hopper
  1107.                 1 = Flat bed
  1108.         intensity:    0 = Lightest
  1109.                 1 = Very light
  1110.                 2 = Light
  1111.                 3 = Normal
  1112.                 4 = Dark
  1113.                 5 = Very dark
  1114.                 6 = Darkest
  1115.  
  1116. int DIDC_get_scanner(int param);
  1117.  
  1118.         Returns the current setting for a specified scanner attribute.
  1119.         Controls scanner settings for the length of the pages to be
  1120.         scanned (letter or legal), the paper source (hopper or flat
  1121.         bed), and the intensity of the scan from lightest (0) to darkest
  1122.         (6).
  1123.  
  1124.     Parameters:     
  1125.  
  1126.         param:     1 = return current page size.
  1127.                     0 = Legal size
  1128.                     1 = Letter size
  1129.  
  1130.                 2 = return current paper source.
  1131.                     0 = Hopper
  1132.                     1 = Flat bed
  1133.  
  1134.                 3 = return current intensity setting.
  1135.                                         0 = Lightest
  1136.                     1 = Very light
  1137.                     2 = Light
  1138.                     3 = Normal
  1139.                     4 = Dark
  1140.                     5 = Very dark
  1141.                     6 = Darkest
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.                                 PAGE  18
  1148.  
  1149. int DIDC_save_scan_set(void);
  1150.  
  1151.  
  1152.         Parameters:     None.
  1153.  
  1154.         Saves the current scanner settings as the default settings for
  1155.         future use.
  1156.  
  1157.  
  1158. int DIDC_print_all_pages_type(char db[], 
  1159.                               char key[],
  1160.                               int doctype);
  1161.  
  1162.  
  1163.     Parameters:    
  1164.  
  1165.         db: name of the image database
  1166.  
  1167.                 key: unique identifier used to locate document in image
  1168.                 database
  1169.  
  1170.                 doctype: Identifies subdocument type to scan. Must be
  1171.                 greater than zero.
  1172.  
  1173.  
  1174.         Prints all pages of document key in image database db that are
  1175.         of type doctype. Setting doctype to 0 will cause all pages to be
  1176.         printed, regardless of document type.
  1177.  
  1178.  
  1179. int DIDC_print_pages(char db[], 
  1180.                      char key[],
  1181.                      int doctype,
  1182.                      int first_page,
  1183.                      int last_page);
  1184.  
  1185.  
  1186.     Parameters:    
  1187.  
  1188.         db: name of the image database
  1189.  
  1190.                 key: unique identifier used to locate document in image
  1191.                 database.
  1192.  
  1193.         doctype: identifies subdocument type to print.
  1194.  
  1195.                 first_page, last_page: Identifies range of pages to
  1196.                 print.
  1197.  
  1198.  
  1199.         Prints selected pages of document key in image database db that
  1200.         are of type doctype. Setting doctype to 0 will cause all pages
  1201.         to be printed, regardless of document type.  Setting first_page
  1202.         to zero, will cause all pages of the selected document type to
  1203.         print.
  1204.  
  1205.  
  1206. int DIDC_clear_doc_page(void);
  1207.  
  1208.         Clears the document display portion of the screen. Function is
  1209.         performed only when KoFax high resolution display is used. Has
  1210.         no effect on VGA or EGA displays.
  1211.  
  1212.  
  1213.                                 PAGE  19
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219. int DIDC_display_page(char db[], char key[],
  1220.                      int pagetype, int page, int control);
  1221.  
  1222.  
  1223.     Parameters:    
  1224.  
  1225.         db: name of the image database
  1226.  
  1227.                 key: unique identifier used to locate document in image
  1228.                 database
  1229.  
  1230.                 page_type: Identifies subdocument type to scan. Must be
  1231.                 greater than zero.
  1232.  
  1233.         page: Page to display.
  1234.  
  1235.         control: If 1, allows user to manipulate image.
  1236.  
  1237.  
  1238.         Displays the page defined by db, key, and page where db is the
  1239.         document database, key is the unique document identifier,
  1240.         pagetype is the document type, and page is the page within the
  1241.         document. If control is set to 1, then the user is allowed to
  1242.         pan, scroll, zoom, and rotate the image.  If control is set to
  1243.         0, then user has no control over the image.
  1244.  
  1245.  
  1246. int DIDC_unique_key(char db[], char key[], int len);
  1247.  
  1248.     Parameters:    
  1249.  
  1250.         db: name of the image database
  1251.  
  1252.                 key: character string that will be filled in with a
  1253.                 unique key value.  The character string must be at least
  1254.                 31 characters long.
  1255.  
  1256.                 len: Length of key to return.  Must be at least 6 but no
  1257.                 more than 30.
  1258.  
  1259.  
  1260.         Returns a unique key [key] value for database db.  The key
  1261.         returned will be len characters long. This function is used when
  1262.         a new document is added to the system. Usually, the application
  1263.         will maintain a key field in each record. This key field is used
  1264.         to access the document associated with that record. When the new
  1265.         document record is created, this function call can be used to
  1266.         ensure that the document key field will have a unique value.
  1267.  
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.                                 PAGE  20
  1274.  
  1275.  
  1276. int DIDC_extract_image(char db[],
  1277.                        char key[],
  1278.                        int pagetype,
  1279.                        int page,
  1280.                        char fname[]);
  1281.  
  1282.     Parameters:    
  1283.  
  1284.         db: name of the image database
  1285.  
  1286.                 key: character string that will be filled in with a
  1287.                 unique key value.  The character string must be at least
  1288.                 31 characters long.
  1289.  
  1290.         pagetype: Specifies subdocument type of page to extract.
  1291.  
  1292.         page: Specifies page to extract.
  1293.  
  1294.         textfname: name of TIFF file to create.
  1295.  
  1296.  
  1297.         Extracts a specified page and stores the TIFF image in the file
  1298.         name specified.
  1299.  
  1300.  
  1301.  
  1302. CLIPPER Function Calls
  1303.  
  1304.  
  1305.         To make Visage function calls from CLIPPER applications, you
  1306.         must link the MSCVIS.OBJ and CLIPVIS.OBJ files into your
  1307.         applications. The CLIPPER function calls are functionally
  1308.         equivalent to those used in C applications -- for detailed
  1309.         descriptions of how the functions operate, see the section on C
  1310.         Language Calls.
  1311.  
  1312.  
  1313. <num> LOCATETSR()
  1314.  
  1315.     Functionally equivalent to DIDC_locate_tsr().
  1316.  
  1317.  
  1318.  
  1319.                                 PAGE  21
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325. <num> CALLMENU(<char> db, <char> key, <num> flag, <char> tfname)
  1326.  
  1327.     Functionally equivalent to DIDC_call_menu().
  1328.  
  1329.  
  1330. <num> SETWVOL(wv)
  1331.  
  1332.     Functionally equivalent to DIDC_set_write_vol().
  1333.  
  1334.  
  1335. <num> GETWVOL()
  1336.  
  1337.     Functionally equivalent to DIDC_get_write_vol().
  1338.  
  1339.  
  1340. <num> BATCHUP()
  1341.  
  1342.     Functionally equivalent to DIDC_batch_update().
  1343.  
  1344. <num> CLRPGE()
  1345.  
  1346.     Functionally equivalent to DIDC_clear_doc_page().
  1347.  
  1348.  
  1349. <char> UKEY(db,len)
  1350.  
  1351.         Functionally equivalent to DIDC_unique_key except that the key
  1352.         is returned by the function call.
  1353.  
  1354.  
  1355. <num> AUTOSCAN(db,key,doctype)
  1356.  
  1357.     Functionally equivalent to DIDC_auto_scan().
  1358.  
  1359.  
  1360. <num> PRTALL(db,key,doctype)
  1361.  
  1362.     Functionally equivalent to DIDC_print_all_pages().
  1363.  
  1364.  
  1365. <num> DISPPAGE(db,key,doctype,page)
  1366.  
  1367.     Functionally equivalent to DIDC_display_page().
  1368.  
  1369.  
  1370. <num> SETSCAN(page_len,source,intensity)
  1371.  
  1372.     Functionally equivalent to DIDC_set_scanner().
  1373.  
  1374.  
  1375. <num> TSRTYPE()
  1376.  
  1377.     Functionally equivalent to DIDC_tsr_type(void).
  1378.  
  1379.  
  1380. <num> CNT_P_TYPE(<char> db, <char> key, <num> doctype)
  1381.  
  1382.  
  1383.                                 PAGE  22
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.         Returns the number of pages in subdocument doctype in document
  1391.         key in database db.
  1392.  
  1393.  
  1394. <num> SHOWLUNS()
  1395.  
  1396.     Displays information about all volumes currently mounted.
  1397.  
  1398.  
  1399. <num> INSPGE(<char> db, <char> key, 
  1400.              <num> doctype, <num> page)
  1401.  
  1402.     Scans a page and stores it by inserting it before the page specified.
  1403.  
  1404.  
  1405. <num> DELPGE(<char> db, <char> key, 
  1406.              <num> doctype, <num> page)
  1407.  
  1408.     Deletes specified page.
  1409.  
  1410.  
  1411. <num> GETSCAN(<num> param)
  1412.  
  1413.         Gets current setting for specified parameter. See
  1414.         DIDC_get_scanner in the C function call section.
  1415.  
  1416.  
  1417. <num> SAVESCAN()
  1418.  
  1419.     Saves current scanner settings as system defaults.
  1420.  
  1421.  
  1422. <num> PRTPGES(<char> db, <char> key, <num> doctype,
  1423.               <num> first_page, <num> last_page)
  1424.  
  1425.         Prints the range of pages specified of a particular document
  1426.         type.  Set doctype to zero to print pages regardless of document
  1427.         type.  Set first_page to zero to print all pages of specified
  1428.         type.
  1429.  
  1430.  
  1431.  
  1432. <num> EXTIMG(<char> db, <char> key, 
  1433.              <num> doctype, <num> page,
  1434.              <char> filename)
  1435.  
  1436.     Extracts page, in TIFF format, to the filename specified.
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.                                 PAGE  23
  1443.  
  1444.  
  1445.  
  1446.  
  1447. TURBO PASCAL Function Calls
  1448.  
  1449.         The Visage function calls for Turbo Pascal are contained in the
  1450. file VISAGE.TPU.  For details of these functions, see the C
  1451. language calls of the same name.
  1452.  
  1453.  
  1454. function DIDC_total_pages(var dbname : string;
  1455.                           var key : string) : integer;
  1456.  
  1457. function DIDC_total_pages_type(var dbname : string;
  1458.                               var key : string;
  1459.                               doc_type : integer) : integer;
  1460.  
  1461. function DIDC_call_menu(var dbname : string;
  1462.                         var kname : string;
  1463.                         flag : integer;
  1464.                         var DocListFname : string) : Integer;
  1465.  
  1466. function DIDC_tsr_type : integer;
  1467.  
  1468. function DIDC_batch_update: integer;
  1469.  
  1470. function DIDC_set_write_vol(wv : word) : integer;
  1471.  
  1472. function DIDC_clear_doc_page : integer;
  1473.  
  1474. function DIDC_unique_key(var dbname : string;
  1475.                          var key : string;
  1476.                          len : integer) : integer;
  1477.  
  1478. function DIDC_get_write_vol : integer;
  1479.  
  1480. function DIDC_auto_scan(var dbname : string; 
  1481.                         var key : string;
  1482.                         doctype : integer): integer;
  1483.  
  1484. function DIDC_set_scanner(page_len : integer;
  1485.                           source : integer;
  1486.                           intensity : integer) : integer;
  1487.  
  1488. function DIDC_print_all_pages(var dbname : string;
  1489.                               var key : string;
  1490.                               doctype : integer) : integer;
  1491.  
  1492. function DIDC_print_pages(var dbname : string;
  1493.                           var key : string;
  1494.                           doctype : integer;
  1495.                           first_page : integer;
  1496.                           last_page : integer) : integer;
  1497.  
  1498. function DIDC_locate_tsr : boolean;
  1499.  
  1500. function DIDC_display_page(var dbname : string;
  1501.                            var kname : string;
  1502.                            pagetype, page : integer;
  1503.                            control : integer) : Integer;
  1504.  
  1505.  
  1506. Using IMGCALLS.EXE
  1507.  
  1508.  
  1509.                                 PAGE  24
  1510.  
  1511.  
  1512. Using IMGCALLS.EXE
  1513.  
  1514.  
  1515.         Some programming languages, such as Dbase IV and Clarion
  1516. Professional Developer, cannot link directly with external object
  1517. modules. These programs do, however, have the ability to execute other
  1518. programs. The Visage program IMGCALLS.EXE (included with the Visage
  1519. Developer's Edition disk) provides access to all Visage functions
  1520. through command line parameters.  For example, in Dbase IV, you could
  1521. call the Visage menu system with the following statement:
  1522.  
  1523.     RUN IMGCALLS 3 IMGDB ABC 0
  1524.  
  1525. In Clarion Developer, you could call the Visage menu system with the
  1526. following statement:
  1527.  
  1528.     RUN('IMGCALLS 3 IMGDB ABC 0')
  1529.  
  1530.  
  1531. The first parameter for IMGCALLS is always a numeric value that
  1532. specifies the function to be invoked. In this example, function 3 calls
  1533. the Visage menu system. Additional parameters, if any, vary depending on
  1534. the function you want to use. In the example, IMGDB is the name of the
  1535. image database, ABC is the document key, and 0 is the function flag.
  1536. (See the C language calls for a full description of the use of these
  1537. parameters). 
  1538.  
  1539. When IMGCALLS terminates, it stores a result code in a file named
  1540. IMGCALLS.RES. Your application can read the contents
  1541. of this file to determine the result of the Visage function call. If
  1542. IMGCALLS.RES contains a negative number, then some sort of error
  1543. occurred.  See Appendix A for a complete listing of error codes. A
  1544. result of -1 means that IMGCALLS was invoked with no parameters. A
  1545. result of -2 means that the Visage TSR is not resident.
  1546.  
  1547. IMGCALLS Function Calls
  1548.  
  1549.  
  1550. Function 1: Return total number of document pages.
  1551.  
  1552. Additional Parameters:     Name of image database
  1553.                 Document Key
  1554.  
  1555. Example: RUN IMGCALLS 1 IMDB ABC
  1556.  
  1557.  
  1558. Function 2: Return total number of sub-document pages.
  1559.  
  1560. Additional Parameters:     Name of image database
  1561.                 Document Key
  1562.                 Sub-document type
  1563.  
  1564. Example: RUN IMGCALLS 2 IMDB ABC 1
  1565.  
  1566.  
  1567. Function 3: Invoke Visage menu system.
  1568.  
  1569. Additional Parameters:     Name of image database
  1570.                         Document Key
  1571.                         Function flag
  1572.                         Document type file <Optional>
  1573.  
  1574. Example: RUN IMGCALLS 3 IMDB ABC 0
  1575.  
  1576.                                 PAGE  25
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583. Function 4: Return version of Visage TSR currently loaded.
  1584.  
  1585. Additional Parameters: None
  1586.  
  1587. Example: RUN IMGCALLS 4
  1588.  
  1589.  
  1590. Function 5: Invoke batch update.
  1591.  
  1592. Additional Parameters: None
  1593.  
  1594. Example: RUN IMGCALLS 5
  1595.  
  1596.  
  1597. Function 6: Set value for write volume.
  1598.  
  1599. Additional Parameters:     Write-volume number
  1600.  
  1601. Example: RUN IMGCALLS 6 3
  1602.  
  1603.  
  1604. Function 7:  Clear document from screen.
  1605.  
  1606. Additional Parameters: None
  1607.  
  1608. Example: RUN IMGCALLS 7
  1609.  
  1610.  
  1611. Function 9: Return unique key for specified image database.
  1612.  
  1613. Additional Parameters:     Name of image database
  1614.                 Desired key length
  1615.  
  1616. Example: RUN IMGCALLS 9 IMGDB 10
  1617.  
  1618. Note: If successful, Visage stores the unique key in IMGCALLS.RES.
  1619.  
  1620.  
  1621. Function 10: Get current value of write volume.
  1622.  
  1623. Additional Parameters: None
  1624.  
  1625. Example: RUN IMGCALLS 10
  1626.  
  1627.  
  1628. Function 11: Display volume status.
  1629.  
  1630. Additional Parameters: None
  1631.  
  1632. Example: RUN IMGCALLS 11
  1633.  
  1634.  
  1635. Function 101: Scan one document page.
  1636.  
  1637. Additional Parameters:     Name of image database
  1638.                         Document Key
  1639.                         Sub-document type
  1640.  
  1641. Example: RUN IMGCALLS 101 IMGDB ABC 0
  1642.  
  1643.  
  1644. Function 102: Scan document pages.
  1645.  
  1646. Additional Parameters:     Name of image database
  1647.                 Document Key
  1648.                 Sub-document type
  1649.  
  1650. Example: RUN IMGCALLS 102 IMGDB ABC 0
  1651.  
  1652.  
  1653. Function 103: Set scanner parameters.
  1654.  
  1655. Additional Parameters:     Page length (legal or letter)
  1656.  
  1657.  
  1658.                                 PAGE  26
  1659.  
  1660.  
  1661.  
  1662.  
  1663.                                 Paper source (hopper or flat bed)
  1664.                 Intensity
  1665.  
  1666. Example: RUN IMGCALLS 103 1 0 3
  1667.  
  1668.  
  1669. Function 104: Scan and insert a page.
  1670.  
  1671. Additional Parameters:   Name of image database
  1672.                          Document Key
  1673.                          Sub-document type
  1674.                          Page number to insert in front of
  1675.  
  1676. Example: RUN IMGCALLS 104 IMGDB ABC 1 1
  1677.  
  1678.  
  1679. Function 105: Delete a page.
  1680.  
  1681. Additional Parameters:   Name of image database
  1682.                          Document Key
  1683.                          Sub-document type
  1684.                          Page number to delete
  1685.  
  1686. Example: RUN IMGCALLS 105 IMGDB ABC 1 1
  1687.  
  1688.  
  1689. Function 203: Print a range of pages for entire document or                     specified sub-document.
  1690.  
  1691. Additional Parameters:        Name of image database
  1692.                 Document Key
  1693.                 Sub-document type
  1694.                 First page
  1695.                 Last page
  1696.  
  1697. Example: RUN IMGCALLS 203 IMGDB 1 1 10
  1698.  
  1699.  
  1700. Function 300: Display specified document or sub-document             page.
  1701.  
  1702. Additional Parameters:        Name of image database
  1703.                 Document Key
  1704.                 Sub-document type
  1705.                 Page number
  1706.  
  1707. Example: RUN IMGCALLS 300 IMGDB ABC 1 1
  1708.  
  1709.                                PAGE 27
  1710.  
  1711. Function Result  Codes
  1712.  
  1713.  
  1714. -500  WRITE_VOL_NOT_MOUNTED
  1715.  
  1716. -501  READ_VOL_NOT_MOUNTED
  1717.  
  1718. -502  INVALID_VOLID
  1719.  
  1720. -503  NO_DB_RECORD
  1721.  
  1722. -504  DATABASE_ERR
  1723.  
  1724. -505  NETWORK_ERR
  1725.  
  1726. -506  LOCKED_OUT
  1727.  
  1728. -508  PAGE_NOT_FOUND
  1729.  
  1730. -509  FSEEK_ERR
  1731.  
  1732. -510  NO_BYTES_READ
  1733.  
  1734. -511  FILE_CLOSED
  1735.  
  1736. -512  FWRITE_ERR
  1737.  
  1738. -513  STATUS_NOT_2
  1739.  
  1740. -514  FTELL_ERR
  1741.  
  1742. -515  UNEQUAL_EOF
  1743.  
  1744. -516  NO_TRFR_FILE
  1745.  
  1746. -517  VOLUME_FULL
  1747.  
  1748. -518  NOT_LOGGED_IN
  1749.  
  1750. -519  TEMP_FILE_NOP
  1751.  
  1752. -520  FWRITE_ERR_TRFR
  1753.  
  1754. -521  FSEEK_ERR_TRFR
  1755.  
  1756. -522  BAD_PAGE_TYPE
  1757.  
  1758. -523  BAD_PAGE_OP
  1759.  
  1760. -524  NO_MORE_USERS
  1761.  
  1762. -525  ISAM_CLOSED
  1763.  
  1764. -526  ISAM_OPEN
  1765.  
  1766. -527  F_CREATE_ERR
  1767.  
  1768. -528  TIMEOUT
  1769.  
  1770. -529  DECOMP_ERR
  1771.  
  1772. -530  SEQUENCE_ERR
  1773.  
  1774. -531  PARAM_ERR
  1775.  
  1776. -532  BLOCK_HDR_ERR
  1777.  
  1778. -533  USER_BREAK
  1779.  
  1780. -534  DBNAME_ERR
  1781.  
  1782. -535  BATCH_UPDATE_NEEDED
  1783.  
  1784. -536  CORRUPTED_IMAGE
  1785.  
  1786. -537  NOT_LOCKED_OUT
  1787.  
  1788. -538  IMG_DB_NOP
  1789.  
  1790. -539  ERR_GET_REC
  1791.  
  1792. -540  DEST_VOL_NT_MTD
  1793.  
  1794.  
  1795.                                 PAGE  28
  1796.  
  1797.  
  1798.  
  1799.  
  1800.  
  1801. -541  ERR_RD_BLKHDR
  1802.  
  1803. -542  ERR_WT_BLKHDR
  1804.  
  1805. -543  ERR_RD_IMAGE
  1806.  
  1807. -544  ERR_WT_IMAGE
  1808.  
  1809. -545  SRCE_VOL_NT_MTD
  1810.  
  1811. -546  SRCE_EQLS_DEST
  1812.  
  1813. -547  DEST_FILE_NT_MTD
  1814.  
  1815. -548  INVALID_USER
  1816.  
  1817. -549  NO_MORE_PAGES
  1818.  
  1819. -550  ERR_PUT_REC
  1820.  
  1821. -551  ADD_TRFR_REC
  1822.  
  1823. -552  PAGE_DOESN'T_EXIST
  1824.  
  1825. -553  PRINTER_ERROR
  1826.  
  1827. -554  DISPLAY_ERROR
  1828.  
  1829. -555  DTI_TIMEOUT
  1830.  
  1831. -556  EMPTY_KEY
  1832.  
  1833. -557  TSR_NOT_LOADED
  1834.  
  1835. -558  NO_KEY
  1836.  
  1837. -559  KEY_TOO_LONG
  1838.  
  1839. -560  NO_DB_NAME
  1840.  
  1841. -561  DB_NAME_TOO_LONG
  1842.  
  1843. -562  BAD_PAGE_NUMBERS
  1844.  
  1845. -563  FUNCTION_NOT_SUPPORTED
  1846.  
  1847.  
  1848.  
  1849.          ----------------end-of-author's-documentation---------------
  1850.  
  1851.                          Software Library Information:
  1852.  
  1853.                     This disk copy provided as a service of
  1854.  
  1855.                            Public (software) Library
  1856.  
  1857.          We are not the authors of this program, nor are we associated
  1858.          with the author in any way other than as a distributor of the
  1859.          program in accordance with the author's terms of distribution.
  1860.  
  1861.          Please direct shareware payments and specific questions about
  1862.          this program to the author of the program, whose name appears
  1863.          elsewhere in  this documentation. If you have trouble getting
  1864.          in touch with the author,  we will do whatever we can to help
  1865.          you with your questions. All programs have been tested and do
  1866.          run.  To report problems,  please use the form that is in the
  1867.          file PROBLEM.DOC on many of our disks or in other written for-
  1868.          mat with screen printouts, if possible.  PsL cannot debug pro-
  1869.          programs over the telephone, though we can answer questions.
  1870.  
  1871.          Disks in the PsL are updated  monthly,  so if you did not get
  1872.          this disk directly from the PsL, you should be aware that the
  1873.          files in this set may no longer be the current versions. Also,
  1874.          if you got this disk from another vendor and are having prob-
  1875.          lems,  be aware that  some files may have become corrupted or
  1876.          lost by that vendor. Get a current, working disk from PsL.
  1877.  
  1878.          For a copy of the latest monthly software library newsletter
  1879.          and a list of the 4,000+ disks in the library, call or write
  1880.  
  1881.                            Public (software) Library
  1882.                                P.O.Box 35705 - F
  1883.                             Houston, TX 77235-5705
  1884.  
  1885.                                 1-800-2424-PSL
  1886.                              MC/Visa/AmEx/Discover
  1887.  
  1888.                           Outside of U.S. or in Texas
  1889.                           or for general information,
  1890.                               Call 1-713-524-6394
  1891.  
  1892.                           PsL also has an outstanding
  1893.                           catalog for the Macintosh.
  1894.  
  1895.